package com.xyz.service;

import com.xyz.util.dto.DataResult;
import com.xyz.util.dto.LoginInfo;

public interface UserService {

    DataResult passwordLessLogin(String username, String clientId, String ts, String signature) throws Exception;

    DataResult login(String username, String password) throws Exception;

    DataResult appLogin(String username, String password) throws Exception;

    DataResult WeChatLogin(String phoneNumber, String password) throws Exception;

    DataResult logout(LoginInfo li) throws Exception;

    DataResult selectUser(LoginInfo li, int pageNum, int pageSize, String username, String employeeName) throws Exception;

    DataResult insertUser(LoginInfo li, String username, String password) throws Exception;

    DataResult updateUser(LoginInfo li, long userId, String password) throws Exception;

    DataResult deleteUser(LoginInfo li, long userId) throws Exception;

}
